package patterns.command;

/**
 * Created by lenovo on 2016/11/30 0030.
 * IOrder的实现类，卖东西的具体实现
 */
public class SellStock implements IOrder{
    private Stock abcStock;

    public SellStock(Stock stock){
        this.abcStock = stock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
